package com.designpatterns.behavioral.bridge;

/**
 * 抽象图像类，充当抽象类
 */
public abstract class Image {
    protected ImageImp imp;

    public ImageImp getImp() {
        return imp;
    }

    //注入实现类接口对象
    public void setImp(ImageImp imp) {
        this.imp = imp;
    }

    public abstract void parseFile(String filename);
}
